package demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:张熳
 * Date:2025-08-28
 * Time:17:26
 */
//接口的使用
//鼠标类：实现USB接口，并具备点击功能

public class Mouse implements USB{
    //实现USB接口
    @Override
    public void openDevice() {
        System.out.println("打开鼠标🖱");
    }

    @Override
    public void closeDevice() {
        System.out.println("关闭鼠标🖱");
    }

    //具备点击功能
    public void click() {
        System.out.println("点击鼠标🖱");
    }
}
